package com.thread.threadfirst.javaBase;

/**
 * 匿名内部类
 */
public class AnonymousInnerClass {
    public static void main(String[] args) {
        Inter inter = new Inter() {

            @Override
            public void m2() {
                System.out.println("m2");
            }

            @Override
            public void m3() {
                System.out.println("m3");
            }
        };
        inter.m2();
        inter.m3();
    }
}
